package com.bilibili.service;

import com.bilibili.entity.PicPage;
import com.bilibili.vo.PicUploadPageVo;

import java.util.List;

/**
 * 章节service层接口
 * Sandy
 */
public interface PicPageService {

    /**
     * @param cartoonId 漫画id
     * @return 通过cartoonId查找到该漫画有几页
     */
    Integer getPageCountByCartoonId(Integer cartoonId);

    /**
     *
     * @param cartoonId 漫画id
     * @return 通过cartoonId查找到该漫画多少给页的实体类
     */
    List<PicPage> getPagesByCartoonId(Integer cartoonId);

    boolean addPage(PicUploadPageVo picUploadPageVo);
}
